package com.youkeyi.ddy.cloud.common.api.basic.pub.pay;


import com.youkeyi.ddy.cloud.common.api.basic.pub.pay.dto.PublicPayTypeListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.pay.param.PublicPayTypeCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.pay.param.PublicPayTypeDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.pay.param.PublicPayTypeQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.pay.param.PublicPayTypeUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * PublicPayTypeCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/21 2:27 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/public/pay/type/fallback")
public class PublicPayTypeCloudServiceFallback implements PublicPayTypeCloudService {

    @Override
    public PublicPayTypeListCloudDto query(PublicPayTypeQueryCloudParam param) {
        return new PublicPayTypeListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(PublicPayTypeCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(PublicPayTypeUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(PublicPayTypeDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
